const { ipcMain } = require('electron')
const path = require('path')
const fs = require('fs')

ipcMain.handle('on-file-event', () => {
  const fileList = fs.readdirSync(path.resolve(__dirname, '../public/upload/'))
  return fileList
})
